package com.ruoyi.hydrology.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hydrology.mapper.YslcdssHistoryMapper;
import com.ruoyi.hydrology.domain.YslcdssHistory;
import com.ruoyi.hydrology.service.IYslcdssHistoryService;

/**
 * 涌水量历史数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-06
 */
@Service
public class YslcdssHistoryServiceImpl extends ServiceImpl<YslcdssHistoryMapper, YslcdssHistory> implements IYslcdssHistoryService //修改
{
    @Autowired
    private YslcdssHistoryMapper yslcdssHistoryMapper;

    /**
     * 查询涌水量历史数据
     * 
     * @param id 涌水量历史数据主键
     * @return 涌水量历史数据
     */
    @Override
    public YslcdssHistory selectYslcdssHistoryById(String id)
    {
        return yslcdssHistoryMapper.selectYslcdssHistoryById(id);
    }

    /**
     * 查询涌水量历史数据列表
     * 
     * @param yslcdssHistory 涌水量历史数据
     * @return 涌水量历史数据
     */
    @Override
    public List<YslcdssHistory> selectYslcdssHistoryList(YslcdssHistory yslcdssHistory)
    {
        return yslcdssHistoryMapper.selectYslcdssHistoryList(yslcdssHistory);
    }

    /**
     * 新增涌水量历史数据
     * 
     * @param yslcdssHistory 涌水量历史数据
     * @return 结果
     */
    @Override
    public int insertYslcdssHistory(YslcdssHistory yslcdssHistory)
    {
        return yslcdssHistoryMapper.insertYslcdssHistory(yslcdssHistory);
    }

    /**
     * 修改涌水量历史数据
     * 
     * @param yslcdssHistory 涌水量历史数据
     * @return 结果
     */
    @Override
    public int updateYslcdssHistory(YslcdssHistory yslcdssHistory)
    {
        return yslcdssHistoryMapper.updateYslcdssHistory(yslcdssHistory);
    }

    /**
     * 批量删除涌水量历史数据
     * 
     * @param ids 需要删除的涌水量历史数据主键
     * @return 结果
     */
    @Override
    public int deleteYslcdssHistoryByIds(String[] ids)
    {
        return yslcdssHistoryMapper.deleteYslcdssHistoryByIds(ids);
    }

    /**
     * 删除涌水量历史数据信息
     * 
     * @param id 涌水量历史数据主键
     * @return 结果
     */
    @Override
    public int deleteYslcdssHistoryById(String id)
    {
        return yslcdssHistoryMapper.deleteYslcdssHistoryById(id);
    }
}
